<html>
<head>
    <meta http-equiv=content-type content="text/html; charset=UTF-8">
    <link type="text/css" rel="stylesheet" href="/themes/default/style.css" />
</head>

  <body>
    {% for greeting in greetings %}
        <b>({{greeting.key.id}})</b>
      {% ifequal greeting.author_type 'google' %}
        <b>{{ greeting.google_author.nickname }}</b> wrote ({{ greeting.update_time|date:"Y-m-d H:i" }}):
      {% endifequal %}
      {% ifequal greeting.author_type 'other' %}
       {{ greeting.author_name }} wrote ({{ greeting.update_time|date:"Y-m-d H:i" }}):
      {% endifequal %}
      <blockquote>{{greeting.key}} - {{greeting.id}}  - {{ greeting.content|escape|linebreaksbr }}</blockquote>
    {% endfor %}

    <form action="/guestbook/sign.do" method="post">
      <div><textarea name="content" rows="3" cols="60"></textarea></div>
      <div><input type="text" name="name" /></div>
    <div><input type="text" name="url" /></div>
    <div><input type="text" name="mail" /></div>
      <div><input type="submit" value="Sign greeting"></div>
    </form>

    <a href="{{ url }}">{{ url_linktext }}</a>

  </body>
</html>
